package com.pine.dcts.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pine.dcts.entity.DatasourceInfo;
import com.pine.dcts.model.Field;
import com.pine.dcts.model.OrgDTO;
import com.pine.dcts.model.Table;

import java.util.List;

public interface DatasourceService extends IService<DatasourceInfo> {


    List<OrgDTO> getDatasourceTree();

    List<String> getSchemasByDatasourceId(Integer datasourceId);

    List<Table> getTablesByDatasourceId(Integer datasourceId,String schemaName);

    List<Field> getFieldsByTable(Integer datasourceId,String schemaName,String tableName);
}
